package com.dkd.manage.service.impl;

import com.dkd.manage.domain.OrderCollect;
import com.dkd.manage.service.IOrderCollectService;
import com.dkd.manage.mapper.OrderCollectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 合作商订单汇总Service业务层处理
 * 
 * @author 付赟铖
 * @date 2025-09-30
 */
@Service
public class OrderCollectServiceImpl implements IOrderCollectService {
    @Autowired
    private OrderCollectMapper orderCollectMapper;

    /**
     * 查询合作商订单汇总
     * 
     * @param id 合作商订单汇总主键
     * @return 合作商订单汇总
     */
    @Override
    public OrderCollect selectOrderCollectById(Long id)
    {
        return orderCollectMapper.selectOrderCollectById(id);
    }

    /**
     * 查询合作商订单汇总列表
     * 
     * @param orderCollect 合作商订单汇总
     * @return 合作商订单汇总
     */
    @Override
    public List<OrderCollect> selectOrderCollectList(OrderCollect orderCollect)
    {
        return orderCollectMapper.selectOrderCollectList(orderCollect);
    }

    /**
     * 新增合作商订单汇总
     * 
     * @param orderCollect 合作商订单汇总
     * @return 结果
     */
    @Override
    public int insertOrderCollect(OrderCollect orderCollect)
    {
        return orderCollectMapper.insertOrderCollect(orderCollect);
    }

    /**
     * 修改合作商订单汇总
     * 
     * @param orderCollect 合作商订单汇总
     * @return 结果
     */
    @Override
    public int updateOrderCollect(OrderCollect orderCollect)
    {
        return orderCollectMapper.updateOrderCollect(orderCollect);
    }

    /**
     * 批量删除合作商订单汇总
     * 
     * @param ids 需要删除的合作商订单汇总主键
     * @return 结果
     */
    @Override
    public int deleteOrderCollectByIds(Long[] ids)
    {
        return orderCollectMapper.deleteOrderCollectByIds(ids);
    }

    /**
     * 删除合作商订单汇总信息
     * 
     * @param id 合作商订单汇总主键
     * @return 结果
     */
    @Override
    public int deleteOrderCollectById(Long id)
    {
        return orderCollectMapper.deleteOrderCollectById(id);
    }
}
